//
//  AppDelegate.m
//  SiriSoupChefOCDemo
//
//  Created by Allison on 2023/10/24.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}


#ifdef __IPHONE_12_0
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
    // activityType 和 Info.plist中的NSUserActivityTypes内容对应
    if ([userActivity.activityType isEqualToString:@"SiriIntents"]) {
       // Siri接收到命令，打开本APP，做出相应的处理即可

    }
    return YES;
}
#endif

@end
